package cn.jtfadmin.core.modules.quartz.domain.dto;

import cn.jtfadmin.core.modules.quartz.enums.JobStatusEnum;
import cn.jtfadmin.core.modules.quartz.enums.MisfireInstructionActionEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 任务模型
 *
 * @author akfh
 * @since 1.0
 */
@Data
public class JobModelRDTO implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 过期策略
     */
    private MisfireInstructionActionEnum misfireInstructionAction;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private LocalDateTime nextFireTime;
    private LocalDateTime finalFireTime;
    /**
     * 任务类名
     */
    protected String jobClassName;


    /**
     * cron 表达式
     */
    protected String cronExpression;

    /**
     * 参数
     */
    protected String parameter;

    /**
     * 描述
     */
    protected String description;

    /**
     * 任务状态
     */
    protected JobStatusEnum status;


    /**
     * id
     */
    protected String id;
}
